package com.ruoyi.framework.web.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ruoyi.project.cms.domain.ArticleTheme;
import com.ruoyi.project.cms.domain.Category;
import com.ruoyi.project.cms.domain.Options;
import com.ruoyi.project.cms.service.ArticleThemeService;
import com.ruoyi.project.cms.service.CategoryService;
import com.ruoyi.project.cms.service.OptionsService;

/**
 * 站点参数配置
 * 
 * @author Administrator
 *
 */
@Service("option")
public class OptonService {
	@Autowired
	private OptionsService optionsService;
	@Autowired
	private CategoryService categoryService;
	@Autowired
	private ArticleThemeService articleThemeService;
	/**
	 * 根据字典类型查询字典数据信息
	 * 
	 * @param dictType
	 *            字典类型
	 * @return 参数键值
	 */
	public List<Options> loadSite() {
		return optionsService.selectOptionsList(null);
	}
	
	public List<Category> loadCategory(){
		return categoryService.selectCategoryList(null);
	}
	
	public List<ArticleTheme> loadTheme(){
		return articleThemeService.selectArticleThemeList(null);
	}
}
